package com.southminority.ethnic.controller.language.vo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;


import java.time.LocalDateTime;
import java.util.List;

/**
 * 语言分页响应VO
 * 
 * @author SouthMinority
 */
@Data
@Schema(description = "语言分页响应")
public class LanguagePageResq<T> {


    private Page<T> page;

    @Schema(description = "分页数据")
    private List<T> list;

    /**
     * 从MyBatis Plus的Page对象设置分页信息
     */
    public void getPage(com.baomidou.mybatisplus.extension.plugins.pagination.Page<T> page) {
        this.page = page;
    }




    /**
     * 语言项响应VO
     */
    @Data
    @Schema(description = "语言项")
    public static class LanguageItemResq {
        
        @Schema(description = "ID")
        private Long id;
        
        @Schema(description = "标题")
        private String title;
        
        @Schema(description = "内容")
        private String content;
        
        @Schema(description = "语言类型")
        private String languageType;
        
        @Schema(description = "创建时间")
        private LocalDateTime createTime;
        
        @Schema(description = "更新时间")
        private LocalDateTime updateTime;
    }
}
